package com.nx.samuel.stub_demo.consumer;

import com.nx.samuel.stub_demo.api.HelloService;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class StubConsumer {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("dubbo-consumer.xml");
        context.start();

        HelloService helloService = context.getBean("helloService", HelloService.class);

        String result = helloService.sayHello("nxnxnx");

        System.out.println(result);
    }
}
